package org.zp.handler;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ExitHandler {
@GetMapping("exit.act")
public void exit(HttpServletRequest req,HttpServletResponse resp) throws IOException {
	req.getSession().invalidate();
	resp.sendRedirect("page.act");
	System.out.println("完成注销");
}
}
